<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    input[disabled] {
      background-color: pink;
    }
  </style>

</head>

<body>

  <div>
    <input type="text" disabled=true />
    <input type="text" disabled=false />
    <input type="text" readonly />
  </div>
  <script>
    let arr = [1, 2, 3, 4, 5]
    let sum = arr.reduce(
      (res, item) => {
        return res + item
      }
    )
    // console.log(sum);
    let key = 0
    let valuekey = 1
    let list = [2, 1, 0]

    let n = list.map(item => ({
      label: item[key],
      value: item[valuekey]
    }))
    console.log(list);
    console.log(n);
  </script>
</body>

</html>